MidiOutSetPatch
Result = MidiOutSetPatch(Index, Channel, Patch)
 
Parameters:

    Index = MidiOut index
    Channel = Midi channel
    Patch = Patch number
Returns:

    Success = 1 means successfully sent, 0 means an error occured
 

MidiOutSetPatch changes the patch of (ie. sends a program change message to) the specified Midi port and channel. The function returns 1 if the message was successfully send, or else 0 if an error occured. In the event of an error, the error code can be retrieved with GetLastMidiOutError().

 
Related Info: GetLastMidiOutError :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com